public class rules
{
  public String s2;
  
  public rules()
  {
     computer(); 
  }
  public  String computer()
  {
   int comput;
   comput = (int)(Math.random() * 3 + 1);
   if (comput == 1)
     s2 = "stone";
   else
     {if (comput == 2)
        s2 = "scissors";
      else
        s2 = "cloth";}
   
   return s2;
  }   
  public String toString()
  {
     return s2;
  }
}      
